package com.motu.monstercity.server.game.logic;

import com.motu.monstercity.server.game.userdata.UserActDiscountGift;
import com.motu.monstercity.server.game.userdata.UserActTaskReward;
import com.motu.vertx.module.utility.model.EntityManager;

public class OnceActUserData extends OnceActBaseData {

    public static UserActTaskReward getUserActTastReward(long userId, int taskGroupId) {
        return (UserActTaskReward) EntityManager.getEntity(UserActTaskReward.class, userId, taskGroupId);
    }

    /**
     * 获取折扣礼包用户数据
     */
    public static UserActDiscountGift getDiscountGiftUserData(long userId) {
        return (UserActDiscountGift) EntityManager.getUniqueEntity(UserActDiscountGift.class, userId);  // 不存在数据时创建
    }

}
